package com.robotserver.orders.service;

import com.robotserver.orders.entity.DyTokens;
import com.robotserver.orders.vo.DyOrderCsjTimeVO;
import com.robotserver.orders.vo.dycsjorder.DyOrderCsjResult;

import java.util.List;

/**
 * @Auther: lucher
 * @Date: 2020/12/2 14:05
 * @Description:
 */
public interface DyOrderCsjSyncService {
    void syncOpenUnitOrder(List<DyOrderCsjTimeVO> dyOrderCsjTimeVOS, DyTokens token, Integer downType);
    void syncTimeUnitOrder(DyOrderCsjTimeVO time, DyTokens token, String cursor, Integer downType);
    void ordersAdd(List<DyOrderCsjResult.DyOrderCsj> orderCsjList, DyTokens dyTokens);
    //消费者-处理抖音订单线程
    void threadSyncOrder_consumer(List<DyOrderCsjTimeVO> dyOrderCsjTimeVOS, DyTokens token, Integer downType);

    /**
     * @param timeType 1-付款时间；4-更新时间
     * @return com.alibaba.fastjson.JSONObject
     * @author jitwxs
     * @date 2024/3/21 17:19
     */
    DyOrderCsjResult getOrders(long startTime, long endTime, String cursor, int timeType, List<String> orderIds, DyTokens dyTokens);
}
